package com.ruoyi.animal.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 废弃物处理对象 waste_management
 * 
 * @author gw
 * @date 2025-01-08
 */
public class WasteManagement extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 废弃物ID */
    private Long wasteId;


    /** 动物ID */
    @Excel(name = "动物ID")
    private Long animalId;

//    动物编号
    private String animalNumber;
    /** 废弃物类型 */
    @Excel(name = "废弃物类型")
    private Integer wasteType;

    /** 处理方法 */
    @Excel(name = "处理方法")
    private Integer disposalMethod;

    /** 处理日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "处理日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date disposalDate;

    /** 删除人 */
    private String deleteBy;

    /** 删除时间 */
    private Date deleteTime;

    /** 版本号，用于乐观锁控制 */
    private Long version;

    /** 删除标记（0-未删除（默认），1-已删除） */
    private Integer delFlag;

    public String getAnimalNumber() {
        return animalNumber;
    }

    public void setAnimalNumber(String animalNumber) {
        this.animalNumber = animalNumber;
    }

    public void setWasteId(Long wasteId)
    {
        this.wasteId = wasteId;
    }

    public Long getWasteId() 
    {
        return wasteId;
    }
    public void setAnimalId(Long animalId) 
    {
        this.animalId = animalId;
    }

    public Long getAnimalId() 
    {
        return animalId;
    }
    public void setWasteType(Integer wasteType) 
    {
        this.wasteType = wasteType;
    }

    public Integer getWasteType() 
    {
        return wasteType;
    }
    public void setDisposalMethod(Integer disposalMethod) 
    {
        this.disposalMethod = disposalMethod;
    }

    public Integer getDisposalMethod() 
    {
        return disposalMethod;
    }
    public void setDisposalDate(Date disposalDate) 
    {
        this.disposalDate = disposalDate;
    }

    public Date getDisposalDate() 
    {
        return disposalDate;
    }
    public void setDeleteBy(String deleteBy) 
    {
        this.deleteBy = deleteBy;
    }

    public String getDeleteBy() 
    {
        return deleteBy;
    }
    public void setDeleteTime(Date deleteTime) 
    {
        this.deleteTime = deleteTime;
    }

    public Date getDeleteTime() 
    {
        return deleteTime;
    }
    public void setVersion(Long version) 
    {
        this.version = version;
    }

    public Long getVersion() 
    {
        return version;
    }
    public void setDelFlag(Integer delFlag) 
    {
        this.delFlag = delFlag;
    }

    public Integer getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("wasteId", getWasteId())
            .append("animalId", getAnimalId())
            .append("wasteType", getWasteType())
            .append("disposalMethod", getDisposalMethod())
            .append("disposalDate", getDisposalDate())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("deleteBy", getDeleteBy())
            .append("deleteTime", getDeleteTime())
            .append("version", getVersion())
            .append("delFlag", getDelFlag())
            .toString();
    }
}
